package MAgentAssignment.ontology.concepts;

import jade.content.Concept;

import java.util.Vector;

/**
 * Created by IntelliJ IDEA.
 * User: prageeth
 * Date: 2/16/12
 * Time: 6:55 AM
 * To change this template use File | Settings | File Templates.
 */
public class Airport implements Concept
{
    private String airpotCode;
    private String airportName;
    private int maxPlanes;
    private int parkingSlots;
    private Location location = new Location( 0, 0 );
    private Vector<Flight> incomingFlights = new Vector<Flight>();
    private Vector<Flight> stayFlight = new Vector<Flight>();


    public int getParkingSlots()
    {
        return parkingSlots;
    }

    public void setParkingSlots( int parkingSlots )
    {
        this.parkingSlots = parkingSlots;
    }

    public Vector<Flight> getIncomingFlights()
    {
        return incomingFlights;
    }


    public void setIncomingFlights( Vector<Flight> incomingFlights )
    {
        this.incomingFlights = incomingFlights;
    }

    public Vector<Flight> getStayFlight()
    {
        return stayFlight;
    }

    public void setStayFlight( Vector<Flight> stayFlight )
    {
        this.stayFlight = stayFlight;
    }

    public Location getLocation()
    {
        return location;
    }

    public void setLocation( Location location )
    {
        this.location = location;
    }

    public int getMaxPlanes()
    {
        return maxPlanes;
    }

    public void setMaxPlanes( int maxPlanes )
    {
        this.maxPlanes = maxPlanes;
    }


    public String getAirpotCode()
    {
        return airpotCode;
    }

    public void setAirpotCode( String airpotCode )
    {
        this.airpotCode = airpotCode;
    }

    public String getAirportName()
    {
        return airportName;
    }

    public void setAirportName( String airportName )
    {
        this.airportName = airportName;
    }

    public double _getTax()
    {
        int totalOcc = (stayFlight.size() + incomingFlights.size());
//        double demand = (parkingSlots - totalOcc)/(parkingSlots);
        double tax = ((double )totalOcc/(double)parkingSlots) * 100.00;
        tax = totalOcc * 100.00;
        return tax;
    }

}
